package cn.ava.ymcc.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

@NoArgsConstructor
@AllArgsConstructor
@Data
@Accessors(chain = true)
public class UserRegisterDto {

    // 图形验证码
    @NotEmpty(message = "图形验证码错误或不存在!")
    private String imageCode;
    // 用户手机号
    @NotEmpty(message = "手机号不能为空!")
    private String mobile;
    // 密码
    @NotEmpty(message = "密码不能为空!")
    private String password;
    // 用户类型
    @NotNull(message = "参数异常!")
    private Integer regChannel;
    // 短信验证码
    @NotEmpty(message = "短信验证码不能为空!")
    private String smsCode;

    private String recommendCode;

}
